package com.songlanyun.modules.signin.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.songlanyun.common.drive.RootEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 签到管理-签到配置
 *
 * @author lijiahe
 * @date 2022-08-03
 */
@Data
@TableName("yxt_sign_in_config")
@EqualsAndHashCode(callSuper = true)
public class SignInConfigEntity extends RootEntity<Long, SignInConfigEntity> implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId
    private Long id;
    /**
     * 签到获得爱心值
     */
    private Integer loveValue;
    /**
     * 月度签到(0代表满勤，默认0)
     */
    private Integer monthSignIn;
    /**
     * 奖励优惠券
     */
    private String rewardCoupons;
    /**
     * 奖励张数
     */
    private Integer numberRewards;
    /**
     * 签到规则
     */
    private String rules;

    private Long createBy;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    private Long updateBy;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @Override
    public Long getIdentity() {
        return getId();
    }

}
